package com.fengchunge.dao;

import com.fengchunge.pojo.UserCollectionBack;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserCollectionBackMapper {
    int insert(UserCollectionBack record);

    int insertSelective(UserCollectionBack record);

    List<UserCollectionBack> selectByUidAndMovieId(@Param("uid") Long uid, @Param("movieId") Long movieId);

    UserCollectionBack selectByUidAndMovieUrl(@Param("uid") Long uid, @Param("movieUrl") String movieUrl);

    int updateByPrimaryKeySelective(UserCollectionBack userCollectionBack);
    int updateByMovieUrlSelective(UserCollectionBack userCollectionBack);

    List<UserCollectionBack> getCollectionList(@Param("uid") Long uid, @Param("collectionStatus") Integer collectionStatus);

    List<Long> getAllUid();

}